package com.hspedu.chapter_assignment;

public class HomeWork04 {
    public static void main(String[] args) {
        A a = new A();
        a.f1();
    }
}


class A {
    private final String NAME = "smith";

    public void f1() {

        class B {
            private final String NAME = "jack";

            public void show1() {
                System.out.println("B NAME=" + NAME);
            }

            public void show2() {
                System.out.println("A NAME=" + A.this.NAME);
            }
        }

        B b = new B();
        b.show1();
        b.show2();
    }


}